
package com.work.test;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.*;

import org.apache.commons.lang3.builder.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "collection")
public class DsXmlCollection extends DsXmlBaseType implements Serializable {

	private static final long serialVersionUID = 7234775185725229542L;

	@XmlAttribute(name = "id", required = true)
	private String id;

	@XmlAttribute(name = "target", required = false)
	private String target;

	@XmlElement(required = false, name = "collection")
	List<DsXmlCollection> collections;

	@XmlAttribute(required = false, name = "listsInvoice")
	private boolean listsInvoice = false;

	@XmlAttribute(name = "dictClass", required = false)
	private String dictClass;

	@XmlAttribute(name = "importDestinationCollection", required = false)
	private String importDestinationCollection;

	@XmlAttribute(name = "importDestinationCollection2", required = false)
	private String importDestinationCollection2;

	@XmlAttribute(name = "className", required = false)
	private String className;

	@XmlAttribute(name = "listOrder", required = false)
	private int listOrder = 0;

	public String getImportDestinationCollection()
	{
		return importDestinationCollection;
	}

	public void setImportDestinationCollection(String importDestinationCollection)
	{
		this.importDestinationCollection = importDestinationCollection;
	}

	public String getImportDestinationCollection2()
	{
		return importDestinationCollection2;
	}

	public void setImportDestinationCollection2(String importDestinationCollection2)
	{
		this.importDestinationCollection2 = importDestinationCollection2;
	}

	public String getClassName()
	{
		return className;
	}

	public void setClassName(String className)
	{
		this.className = className;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getTarget()
	{
		return target;
	}

	public void setTarget(String target)
	{
		this.target = target;
	}

	public List<DsXmlCollection> getCollections()
	{
		return collections;
	}

	public void setCollections(List<DsXmlCollection> collections)
	{
		this.collections = collections;
	}

	public String getDictClass()
	{
		return dictClass;
	}

	public void setDictClass(String dictClass)
	{
		this.dictClass = dictClass;
	}

	public boolean getListsInvoice()
	{
		return listsInvoice;
	}

	public void setListsInvoice(boolean listsInvoice)
	{
		this.listsInvoice = listsInvoice;
	}

	public int getListOrder()
	{
		return listOrder;
	}

	public void setListOrder(int listOrder)
	{
		this.listOrder = listOrder;
	}

	public String toString()
	{
		return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", getId())
				.append("title", getTitle()).append("target", getTarget())
				.append("operation", getOperation()).append("listsInvoice", getListsInvoice())
				.append("listOrder", getListOrder())
				.append("collections", collections == null ? "null" : collections.size())
				.toString();
	}
}
